This method returns YES if the bar(s) corresponding to mask is turned on (visible), or NO if it is not.
*/
{
return ( (barMask & mask) ? YES : NO );
}
- show:sender
/*
Show all the bars. Since each individual bar knows if it is supposed to be on screen or now, telling it to show itself will do the right thing regardless.
*/
{
[topBar show:sender];
[leftBar show:sender];
[rightBar show:sender];
[bottomBar show:sender];
return ( self );
}
- hide:sender
/*
Hide all of the activator bars.
*/
{
[topBar hide:sender];
[leftBar hide:sender];
[rightBar hide:sender];
[bottomBar hide:sender];
return ( self );
}
- setColor:(NXColor)color
/*
Set the fill color of all the activator bars.
*/
{
fillColor = color;
[topBar setColor:color];
[leftBar setColor:color];
[rightBar setColor:color];
[bottomBar setColor:color];
return ( self );
}
-(NXColor)color
{
return ( fillColor );
}
- setBorderColor:(NXColor)color
/*
Set the border color of all the activator bars.
*/
{
borderColor = color;
[topBar setBorderColor:color];
[leftBar setBorderColor:color];
[rightBar setBorderColor:color];
[bottomBar setBorderColor:color];
return ( self );
}
-(NXColor)borderColor
{
return ( borderColor );
}
- setFloating:(BOOL)flag
/*
Sets the floatActivator global to flag. The Activator Bars check this flag to determine which window tier to display in. Calling setBar:on: indirectly results in having a setPosition: message sent to each of the bars, causing them to place themselves in the proper tier.
When dragging into the Activator is enabled, the Activator bars can each act as dragging destinations for the NXDraggingProtocol for the types defined by dragInTypes -- currently only handles NXFilenamePboardTypes. When dragging is disabled, the bars are unregistered so they won't respond as dragging destinations.